package dreamdancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// 宠物表

type DancePet struct {
	Id          int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	PetName     string         `json:"pet_name" gorm:"column:pet_name;type:varchar(256);not null;default:'';comment:宠物名"`
	PetNo       int64          `json:"pet_no" gorm:"column:pet_no;type:bigint;not null;comment:宠物编号"`
	Scene       int64          `json:"scene"  gorm:"column:scene;type:bigint;not null;comment:获得场景"`               // 1:组刷20个能量电池获得
	Muscle      int64          `json:"muscle"  gorm:"column:muscle;type:bigint;not null;comment:体力值"`              // 体力值
	Iq          int64          `json:"iq"  gorm:"column:iq;type:bigint;not null;comment:智力值"`                      // 智力值
	Mood        int64          `json:"mood"  gorm:"column:mood;type:bigint;not null;comment:心情值"`                  // 心情值
	Growth      int64          `json:"growth"  gorm:"column:growth;type:bigint;not null;comment:成长值"`              // 成长值
	Charm       int64          `json:"charm"  gorm:"column:charm;type:bigint;not null;comment:魅力值"`                // 魅力值
	DefaultSkin int64          `json:"default_skin"  gorm:"column:default_skin;type:bigint;not null;comment:默认皮肤"` // 默认皮肤
	CreatedAt   time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt   time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt   gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
